import { Controller, Get, Query } from "@nestjs/common";
import { UserService } from "src/service/userService";

@Controller()
export class UserController {

  constructor(private userService: UserService){}
  
  @Get("/test")
  public method(
    @Query("name") name: string,
    @Query("age") age: number
  ): string[] {
    console.log("执行了", name, age);
    return this.userService.method();
  }
}